<{include file="admin/header.html"}>
<div class="container">
	<div class="floattop">
		<div class="itemtitle">
			<h3>客户留言管理</h3>
			<ul class="tab1">
				<li><a href="customer_message_manage.php"><span>客户留言列表</span></a></li>
			</ul>
		</div>
	</div>
	<div class="floattopempty"></div>
		<div class="list-div">
		<table class="tb tb2" cellspacing="1" cellpadding="3">
			<tbody>
				<tr class="header">
					<th>姓名</th>
					<th>邮箱</th>
					<th>固定电话</th>
					<th>移动电话</th>
					<th>咨询内容</th>
					<th>操作</th>
				</tr>
				<{foreach from=$message item=m}>
				<tr class="td-cls">
					<td><{$m.c_name}></td>
					<td><{$m.c_email}></td>
					<td><{$m.c_phone}></td>
					<td><{$m.c_mobile}></td>
					<td><{$m.c_content}></td>
					<td><span class="operation"><a href="#" class="del" rel="<{$m.c_id}>">删除</a></span></td>
				</tr>
				<{/foreach}>	
				<tr><td class="pagenavigator" colspan="6"><{$pagenavigator}></td></tr>
			</tbody>
		</table>
		</div>	
</div>
<script type="text/javascript">

$(".del").click(function(){
	if(confirm('删除后不能恢复，确认删除？')) {
		var obj = $(this);
		var c_id = obj.attr('rel');
		$.get('customer_message_manage.php', {act:'del', c_id:c_id}, function(data){ 
			if(data == 1) {
				alert('删除成功');
				obj.parents('tr').remove();	
			}

		});
	}
});

</script>
<{include file="admin/footer.html"}>

